package com.littcore.saap.system.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import java.io.Serializable;

/**
 * <br>
 * Table:tenant_config<br>
 * @author Hibernate Tools 3.4.0.CR1
 * @version 1.0
 * @since Jun 24, 2015 5:50:13 PM
 */
@Entity
@org.hibernate.annotations.Entity
@Table(name = "tenant_config")
public class TenantConfig implements Serializable {
	/**
	 * UID
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 序号.
	 */
	private Integer id;

	/**
	 * 租户ID.
	 */
	private int tenantId;

	/**
	 * 配置对象编号.
	 */
	private String code;

	/**
	 * 配置内容.
	 */
	private String content;

	/**
	 * 更新时间.
	 */
	private Date updateDatetime;

	public TenantConfig() {
	}

	public TenantConfig(int tenantId, String code, String content,
			Date updateDatetime) {
		this.tenantId = tenantId;
		this.code = code;
		this.content = content;
		this.updateDatetime = updateDatetime;
	}

	/**  
	 * Get 序号.
	 * @return 序号
	 */
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	/**
	 * Set 序号.
	 * @param id 序号
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**  
	 * Get 租户ID.
	 * @return 租户ID
	 */

	@Column(name = "TENANT_ID", nullable = false)
	public int getTenantId() {
		return this.tenantId;
	}

	/**
	 * Set 租户ID.
	 * @param tenantId 租户ID
	 */
	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	/**  
	 * Get 配置对象编号.
	 * @return 配置对象编号
	 */

	@Column(name = "CODE", nullable = false, length = 50)
	public String getCode() {
		return this.code;
	}

	/**
	 * Set 配置对象编号.
	 * @param code 配置对象编号
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**  
	 * Get 配置内容.
	 * @return 配置内容
	 */

	@Column(name = "CONTENT", nullable = false, length = 65535)
	public String getContent() {
		return this.content;
	}

	/**
	 * Set 配置内容.
	 * @param content 配置内容
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**  
	 * Get 更新时间.
	 * @return 更新时间
	 */

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_DATETIME", nullable = false, length = 19)
	public Date getUpdateDatetime() {
		return this.updateDatetime;
	}

	/**
	 * Set 更新时间.
	 * @param updateDatetime 更新时间
	 */
	public void setUpdateDatetime(Date updateDatetime) {
		this.updateDatetime = updateDatetime;
	}

}
